package com.mutouren.modules.datapush.base;

public enum PushStatus {
	INIT((byte)0),
	PROCESSING((byte)1),
	SUCCESS((byte)2),
	FAIL((byte)3),
	EXCEPTION((byte)4);
	
	public final byte value;

	private PushStatus(byte value) {
		this.value = value;		
	}
	
	
	public static PushStatus valueOf(byte value) {
		PushStatus result = null;
		
		switch(value) {
		case 0: result = INIT; break;
		case 1: result = PROCESSING; break;
		case 2: result = SUCCESS; break;
		case 3: result = FAIL; break;
		case 4: result = EXCEPTION; break;
		}
		
		return result;
	}	
}

// 推送状态: 0 初始 1 正在处理 2 成功 3 失败 4 异常

